    <div class="content">
        <div class="content_header">
        LICH LÀM VIỆC CỦA LÃNH ĐẠO
        </div>
        <div class="content_table">
            <table>
                <tr>
                	<th>Lãnh đạo</th>
                    <th>TG</th>
                <?php 
                foreach ($thu2_chunhat as $thu=>$ngay){
              	?>
                            
                    <th><?php echo $thu."<br/><span style='font-size:10px'>(".$ngay.")</span>";?></th>
                            
                <?php }
                ?>
                </tr>
                <?php  
                $count = 2;
                $i=1;
                foreach ($users as $row_user){ 
					if($count%2==0)				
						$style="class='row_type_1'";     
					else
						$style=""; 
					$count++;                           	                               
                ?>
                <tr <?php echo $style?>>
                    <td class="group_cell_1"></td>
                    <td>Sáng</td>
                    <?php                                        
                    foreach($thu2_chunhat as $key=>$value){                    	                   
                    ?>  
                    <!-- edit(id_nguoidung,id_day,thoidiem,ngay,id_lich,noidung) --> 
                    <td onclick="
                    edit(<?php echo $row_user->id_nguoidung; ?>,
                    	 <?php echo $i; ?>,
                    	 1,
                    	 '<?php echo $value;?>',
                    	 '<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][1]["id"])?$lichlamviec[$row_user->id_nguoidung][$value][1]["id"]:""?>',
                    	 '<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][1]["noidung"])?$lichlamviec[$row_user->id_nguoidung][$value][1]["noidung"]:"" ?>'
                    	 )" 
                    class="<?php echo $row_user->id_nguoidung.$i."1"; ?>">
                    	<?php
                    	echo isset($lichlamviec[$row_user->id_nguoidung][$value][1]["noidung"])?$lichlamviec[$row_user->id_nguoidung][$value][1]["noidung"]:"" 
                    	?>                    	
                    </td>
                    <?php                     		
                    $i++;
                    }
                   	?>                  
                </tr>
                <tr <?php echo $style?>>
                    <td class="group_cell_2"><?php echo $row_user->ten_nguoidung."-".$row_user->chucvu_nguoidung;?></td>
                    <td>Chiều</td>
                    <?php                                        
                    foreach($thu2_chunhat as $key=>$value){                    	                    
                    ?>
                    <td onclick="
                    edit(<?php echo $row_user->id_nguoidung; ?>,
                    	 <?php echo $i; ?>,
                    	 1,
                    	 '<?php echo $value;?>',
                    	 '<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][2]["id"])?$lichlamviec[$row_user->id_nguoidung][$value][2]["id"]:""?>',
                    	 '<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][2]["noidung"])?$lichlamviec[$row_user->id_nguoidung][$value][2]["noidung"]:"" ?>'
                    	 )" 
                    class="<?php echo $row_user->id_nguoidung.$i."1"; ?>">
                    	<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][2]["noidung"])?$lichlamviec[$row_user->id_nguoidung][$value][2]["noidung"]:""; ?>                    	
                    </td>                   		
                   	<?php
                   	$i++; 
                    }                    
                    ?>
                </tr>
                <tr <?php echo $style?>>
                    <td class="group_cell_3"></td>
                    <td>Tối</td>
                     <?php                                        
                    foreach($thu2_chunhat as $key=>$value){                   	
                    ?>
                    <td onclick="
                    edit(<?php echo $row_user->id_nguoidung; ?>,
                    	 <?php echo $i; ?>,
                    	 1,
                    	 '<?php echo $value;?>',
                    	 '<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][3]["id"])?$lichlamviec[$row_user->id_nguoidung][$value][3]["id"]:""?>',
                    	 '<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][3]["noidung"])?$lichlamviec[$row_user->id_nguoidung][$value][3]["noidung"]:"" ?>'
                    	 )" 
                    class="<?php echo $row_user->id_nguoidung.$i."1"; ?>">
                    	<?php echo isset($lichlamviec[$row_user->id_nguoidung][$value][3]["noidung"])?$lichlamviec[$row_user->id_nguoidung][$value][3]["noidung"]:"" ?>                    
                    </td>                   		
                   	<?php
                   	$i++; 
                    }
                    ?>
                </tr>
                <?php 
                }
                ?>                
            </table>
        </div>
    </div>
</div>